projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e1324a
)
Fix warning in maggeo
author
Robert Lipe
<robertlipe@gpsbabel.org>
Mon, 3 Dec 2018 06:43:29 +0000
(
00:43
-0600)
committer
Robert Lipe
<robertlipe@gpsbabel.org>
Mon, 3 Dec 2018 06:43:29 +0000
(
00:43
-0600)
magproto.cc
patch
|
blob
|
history
diff --git
a/magproto.cc
b/magproto.cc
index 1c4649b0df8989b5a0b73406a53a8b69b94d1222..07bb385d3ba127c630b85d9819ccb56b74cf6450 100644
(file)
--- a/
magproto.cc
+++ b/
magproto.cc
@@
-1362,7
+1362,8
@@
mag_waypt_pr(const Waypoint* waypointp)
if (global_opts.smart_icons &&
waypointp->gc_data->diff && waypointp->gc_data->terr) {
- sprintf(ofmtdesc, "%d/%d %s", waypointp->gc_data->diff,
+ // It's a string and compactness counts, so "1.0" is OK to be "10".
+ sprintf(ofmtdesc, "%ud/%ud %s", waypointp->gc_data->diff,
waypointp->gc_data->terr, CSTRc(odesc));
odesc = mag_cleanse(ofmtdesc);
} else {